package org.redrider.shop.domain
class Customer {
    String firstName
    String lastName
    String address1
    String address2
    String city
    String state
    String zip
    String phone
    String eMail
    static constraints = {
        firstName(blank:false)
        lastName(blank:false)
        address1(blank:false)
        address1(blank:true, nullablse:true)
        city(blank:false)
        state(blank:false)
        zip(blank:false)
        phone(matches:/\d+/, blank:false)
        eMail(email:true, blank:true, nullable:true)
    }

    static hasMany=[vehicles:Vehicle]
}
